import React, { Component } from 'react'
import axios from 'axios'

export default class Home extends Component {

    componentDidMount(){
        let products = [{title:'锅巴',money:5,num:1,pid:6}];
        axios.post('/api/addOrder',{products:JSON.stringify(products),user:'lixd'}).then(res => {
            console.log(res);
        })
    }
    render() {
        return (
            <div>
               
            </div>
        )
    }
}
